package cn.ctyun.mcp.server.service;

import org.springframework.ai.tool.annotation.Tool;
import org.springframework.ai.tool.annotation.ToolParam;
import org.springframework.stereotype.Service;

@Service
public class SayHelloService {

    @Tool(description = "Just say hello")
    public String sayHello() {
        return "Hello!";
    }

    @Tool(description = "Say hello to specified user")
    public String sayHelloTo(
            @ToolParam(description = "User name") String username
    ) {
        return "Hello, " + username + "!";
    }
}